﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace TXTD.Admin.Data.Migrations
{
    public partial class _202207101 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "SYS_ROLE_MENU",
                columns: table => new
                {
                    ROLE_ID = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: false),
                    MENU_ID = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: false)
                },
                constraints: table =>
                {
                });

            migrationBuilder.CreateTable(
                name: "SYS_USER_ROLE",
                columns: table => new
                {
                    USER_ID = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: false),
                    ROLE_ID = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: false)
                },
                constraints: table =>
                {
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "SYS_ROLE_MENU");

            migrationBuilder.DropTable(
                name: "SYS_USER_ROLE");
        }
    }
}
